package com.unlcn.erp.hyc.interfaces.backend.enums;

/**
 * Created by zhiche024 on 2017/9/2.
 */
public enum ExceptionMsgTypeEnum {
    MSG_CITYEXCEPTION(10,"城市异常");

    private final int value;
    private final String text;

    ExceptionMsgTypeEnum(int value , String text){
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public String getText() {
        return text;
    }
    public static ExceptionMsgTypeEnum getByValue(int value){
        for(ExceptionMsgTypeEnum temp : ExceptionMsgTypeEnum.values()){
            if(temp.getValue() == value){
                return temp;
            }
        }
        return null;
    }
}
